<template>
    <div>{{$store.state.username}}</div>
</template>

<script>
export default {
 mounted() {
  return this.$store.dispatch("changeName");
 },
 asyncData(store) {
  return store.dispatch("changeName");
 }
};
</script>